import store from './store'

const getWindowSize = () => {
  const w = window.innerWidth || document.body.clientWidth
  const h = window.innerHeight || document.body.clientHeight

  store.commit('updateCommon', {
    width: w < 1200 ? 1200 : w,
    height: h
  })
}

getWindowSize()

window.onresize = () => {
  getWindowSize()
}
